# 思路2：类封装

class Store:
    goods1 = {'id': '1001', 'name': '可口可乐', 'price': 2.5}
    goods2 = {'id': '1002', 'name': '冰红茶', 'price': 3}
    goods3 = {'id': '1003', 'name': '脉动', 'price': 3.5}
    goods_list = [goods1, goods2, goods3]
    total_money = 0
    goods_nums_dict = {} # {'1001':10,'1002':5}

    def show_goods(self):
        pass

    def total_amount(self):
        pass

    def shopping(self):
        pass


if __name__ == '__main__':
    store = Store()
    store.shopping()
